package com.hgkj.cloud.base.service;

import com.hgkj.cloud.base.common.PageInfo;
import com.hgkj.cloud.base.domain.TenantQuestionnaireTasks;

import java.util.List;
import java.util.Map;

public interface TenantQuestionnaireTasksService {

    int deleteByPrimaryKey(Long id);

    int insert(TenantQuestionnaireTasks record);

    int insertSelective(TenantQuestionnaireTasks record);

    TenantQuestionnaireTasks selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TenantQuestionnaireTasks record);

    int updateByPrimaryKey(TenantQuestionnaireTasks record);

    List<TenantQuestionnaireTasks> listUnPublishQnTasks();

    List<TenantQuestionnaireTasks> listAllQnTasks(PageInfo pi, Map<String, Object> map);

    int findAllQnTaskCount(Map<String, Object> map);
    long findTasksCount(String admin_uuid);
    long findTasksCountByUserUuid(String admin_uuid);
    List<Map<String, Object>> listQnTaskInfoByQnid(PageInfo pi, Map<String, Object> map);
    long listQnTaskInfoByQnidCount( Map<String, Object> map);

    List<Map<String, Object>> getAllQnTasks(Map<String, Object> map);

}
